package Font;

import Service.PetOwnerServiceImpl;
import Service.PetServiceImpl;
import Service.PetStoreServiceImpl;
import Util.DBUtil;

import java.sql.SQLException;

public class Start {
    public static void Start() throws SQLException {
        PetStoreServiceImpl petStoreService = new PetStoreServiceImpl();
        PetServiceImpl petService = new PetServiceImpl();
        PetOwnerServiceImpl petOwnerService = new PetOwnerServiceImpl();


        if (DBUtil.getConnection() != null) {
            System.out.println("宠物商店启动，所有宠物醒来");
            petService.findAllPet();
            System.out.println("******************************************");
            System.out.println("所有宠物商店启动");
            petStoreService.GetAllPetStore();
            System.out.println("******************************************");
            System.out.println("所有宠物主人启动");
            petOwnerService.GetAllPetOwner();
        }
    }
}
